package com.yuyou.train.lesson.service;

import java.util.List;

import com.yuyou.train.lesson.vo.req.ReqResExamItemAdd;
import com.yuyou.train.lesson.vo.req.ReqResExamItemUpdate;
import com.yuyou.train.service.api.lesson.dto.ExamItemDTO;
import com.yuyou.train.service.api.lesson.entity.ResourceExamItem;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

public interface IResourceExamItemService {

    int deleteByPrimaryKey(String id);

    ResBoolSimpleInfo addExamItem(ReqResExamItemAdd reqResExamItemAdd);

    ResBoolSimpleInfo batchAddExamItem(String resourceExamId, List<String> resourceQuestionIds);

    ResourceExamItem selectByPrimaryKey(String id);
    
    List<ResourceExamItem> findExamItemByQuestionId(String questionId);
    
    List<ResourceExamItem> findExamItemByExamId(String examId);

    ResBoolSimpleInfo updateExamItem(ReqResExamItemUpdate reqResExamItemUpdate);
    
    ResBoolSimpleInfo delExamItem(String id);

    ExamItemDTO  findExamItemWithQuestionByExamId(String examId);

    int findExamItemCountByExamId(String examId);

    void reSortExamItem(String examId);

    ResBoolSimpleInfo changeExamItemSort(String origExamItemId, String destExamItemId);
    
    ResourceExamItem selectExamItem(String resourceExamId,String resourceQuestionId,Integer sort);
	
}